home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
basic
/
qbwinfnt.zip
/
EX_BLDFT.BAS
< prev
next >
Wrap
BASIC Source File
|
1994-03-01
|
1KB
|
32 lines
REM: EX_BLDFT.BAS, Unregistered Version 1.0
REM: Example of using BLOAD to load a font array.
DECLARE SUB BLOADFont (FlName$, FontArray%(), RetCode%)
DECLARE SUB FastString (Text$, FClr%, X%, Y%, FontArray%())
'...setup a VGA screen mode...
SCREEN 12
'...dimen array for font data (use REDIM so its DYNAMIC)...
REDIM FontArray%(1)
PRINT : PRINT "BLOAD'ing a font from DTCH_BLD.BIN..."
'...load the font in one of the example BIN files...
CALL BLOADFont("DTCH_BLD.BIN", FontArray%(), RetCode%)
'...check return code, catches non-existent file...
IF (RetCode% <> 0) THEN STOP
'...get the height for below...
Ht% = FontArray%(0)
'...display the capitals, lower case, & numbers...
CALL FastString("ABCDEFGHIJKLMNOPQRSTUVWXYZ", 4, 80, 100, FontArray%())
CALL FastString("abcdefghijklmnopqrstuvwxyz", 4, 80, 100 + Ht%, FontArray%())
CALL FastString("1234567890", 4, 80, 100 + 2 * Ht%, FontArray%())
END